package com.acminds.fotoporter.persistence.entities;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;


/**
 * The persistent class for the FEATURE_GROUP database table.
 * 
 */
@Entity
@Table(name="FEATURE_GROUP")
public class FeatureGroup extends com.acminds.fotoporter.persistence.BaseDTO implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="FEATURE_GROUP_ID")
	private int featureGroupId;

	@Column(name="CREATE_DATE")
	private Timestamp createDate;

	@Column(name="DISPLAY_AS")
	private int displayAs;

	@Column(name="FEATURE_GROUP_DESC")
	private String featureGroupDesc;

	@Column(name="FEATURE_GROUP_NAME")
	private String featureGroupName;

	//bi-directional many-to-one association to Feature
	@OneToMany(mappedBy="featureGroup")
	private List<Feature> features;

	//bi-directional many-to-one association to UserInfo
    @ManyToOne
	@JoinColumn(name="CREATED_BY")
	private UserInfo userInfo;

    public FeatureGroup() {
    }

	public int getFeatureGroupId() {
		return this.featureGroupId;
	}

	public void setFeatureGroupId(int featureGroupId) {
		this.featureGroupId = featureGroupId;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public int getDisplayAs() {
		return this.displayAs;
	}

	public void setDisplayAs(int displayAs) {
		this.displayAs = displayAs;
	}

	public String getFeatureGroupDesc() {
		return this.featureGroupDesc;
	}

	public void setFeatureGroupDesc(String featureGroupDesc) {
		this.featureGroupDesc = featureGroupDesc;
	}

	public String getFeatureGroupName() {
		return this.featureGroupName;
	}

	public void setFeatureGroupName(String featureGroupName) {
		this.featureGroupName = featureGroupName;
	}

	public List<Feature> getFeatures() {
		return this.features;
	}

	public void setFeatures(List<Feature> features) {
		this.features = features;
	}
	
	public UserInfo getUserInfo() {
		return this.userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}
	
}